function go2Page(url) {
	if (!this.$store.getters.getLogin || url == 'login') {
		redict2page('/pages/login/login')
		return
	}
	switch (url) {
		case 'index':
			jump2Page('/pages/index/index')
			break;
	}
}

function jump2Page(url) {
	setTimeout(() => {
		uni.navigateTo({
			url: url
		}, 0.5 * 1000)
	})
}

function redict2page(url) {
	setTimeout(() => {
		uni.redirectTo({
			url: url
		}, 0.5 * 1000)
	})
}


export default go2Page